import java.awt.datatransfer.Transferable;
import java.awt.dnd.DragSourceDragEvent;
import java.awt.dnd.DragSourceMotionListener;

import javax.swing.JComponent;
import javax.swing.TransferHandler;


public class DragHandler extends TransferHandler implements
		DragSourceMotionListener {
	@Override()
    public Transferable createTransferable(JComponent c) {
		return (Transferable) c;
	}
	@Override
	public void dragMouseMoved(DragSourceDragEvent arg0) {} // MAGIC
	
	@Override
	public int getSourceActions(JComponent c) {
		return TransferHandler.MOVE;
	}
}
